module.exports = async (req, res) => {
    const Category = require('../../models/Category');
    const id = req.params.id;
       //获取用户的请求参数，数据库中创建新分类数据
    const model = await Category.findByIdAndDelete(id, req.body);
    res.send({
        success: true
    });
  }